//
//  WMConfig.h
//  Pods-WonderMobSDK_Example
//
//  Created by zero on 2020/2/12.
//

#import <Foundation/Foundation.h>

@class WMAppId;

#import "WMPlan.h"
#import "WMSplashAd.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^WMSDKEnableBlock)(void);

typedef void(^WMCheckBlock)(BOOL isBlocked);

@interface WMConfig : NSObject

@property (nonatomic, copy, readonly, class) NSString *SDKVersion;

/// 获取配置后回调
@property (nonatomic, copy) WMSDKEnableBlock enableBlock;

/// 广点通 应用id
//@property (nonatomic, readonly, copy) NSString *gdtAppId;

@property (nonatomic, readonly, copy) NSArray<WMPlans *>* plans;

@property (nonatomic, readonly, strong) NSMutableDictionary *gameConfig;

@property (nonatomic, readonly, strong) WMAppId* appIdModel;


/// 是否开启调试 default NO  在发布时请务必设置为 NO
@property (nonatomic, readonly, getter=isDebug, assign) BOOL debug;

/// 检查是否被封禁的回调
@property (nonatomic, copy) WMCheckBlock checkIsBlocked;

/// 用户是否被封禁
@property (nonatomic, readwrite, assign) BOOL userIsBlocked;

/// 网络状态
@property (nonatomic, readwrite, assign) NSInteger networkStatus;

/// 网络状态block ：小于0表示无网络，1表示流量，2表示Wi-Fi
@property (nonatomic, copy) void(^NetworkStatusHandle)(NSInteger networkStatus);

@property (nonatomic, copy) NSString *baiduAppId;

@property (nonatomic, strong) WMSplashAd *splashAd;

@property (nonatomic, strong) NSMutableDictionary *mdicFeedAd;

@property (nonatomic, strong) NSMutableDictionary *mdicBannerAd;

@property (nonatomic, strong) NSMutableDictionary *mdicFullVideoAd;

@property (nonatomic, strong) NSMutableDictionary *mdicRewardedVideoAd;

+ (instancetype)sharedInstance;

/// 获取用户的GPS信息，默认值为NO
+ (void)enableGPS;

/// 设置应用 Id
/// @param appModel 游戏配置
- (void)setupWonderMobSDKWithAppIdModel:(WMAppId *)appModel;

/// 设置友盟 sdk
/// @param appKey appkey
/// @param channel 渠道
- (void)setupUmWithAppKey:(NSString *)appKey channel:(NSString * _Nullable)channel;

/// 设置 DEBUG 模式
- (void)setDebug:(BOOL)debug;


@end

NS_ASSUME_NONNULL_END
